package com.gexin.model.activity;

import com.gexin.model.activity.base.BaseGeneralIntegralSpeed;

import java.util.Date;
import java.util.UUID;

/**
 * 业务名称:  t_general_integral_speed() 
 */
@SuppressWarnings("serial")
public class GeneralIntegralSpeed extends BaseGeneralIntegralSpeed<GeneralIntegralSpeed> {
	public static final GeneralIntegralSpeed dao = new GeneralIntegralSpeed();
	public Boolean deletGeneralIntegralSpeed(String id){
		return GeneralIntegralSpeed.dao.deleteById(id);
	}

	public Boolean insertgeneralIntegralSpeed(Integer level,Integer proportion){
		GeneralIntegralSpeed generalIntegralSpeed = new GeneralIntegralSpeed();
		generalIntegralSpeed.setId(String.valueOf(UUID.randomUUID()));
		generalIntegralSpeed.setLevel(level);
		generalIntegralSpeed.setProportion(proportion);
		long time = new Date().getTime();
		generalIntegralSpeed.setCreateTime(time);
		generalIntegralSpeed.setUpdatTime(time);
		Boolean flag = false;
		flag = generalIntegralSpeed.save();
		return flag;
	};
}
